import request from '@/plugins/axios'

export function fetchList(query) {
  return request({
    url: '/api/clientlesseelinkinfo/page',
    method: 'get',
    params: query
  })
}

export function addLinkInfo(obj) {
  return request({
    url: '/api/clientlesseelinkinfo',
    method: 'post',
    data: obj
  })
}

export function getObj(id) {
  return request({
    url: '/api/clientlesseelinkinfo/' + id,
    method: 'get'
  })
}

export function delObj(id) {
  return request({
    url: '/api/clientlesseelinkinfo/',
    method: 'delete',
  })
}

export function putLinkInfo(obj) {
  return request({
    url: '/api/clientlesseelinkinfo',
    method: 'put',
    data: obj
  })
}

export function getByClientLesseeId(clientLesseeId) {
    return request({
        url: '/api/clientlesseelinkinfo/getByClientLesseeId',
        method: 'get',
        params: clientLesseeId
    })
}
